﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
  <class name="EnetaMvc.Core.Domain.Events.EventAttendee,EnetaMvc.Core" table="event_attendee">

    <id name="Id" column="event_attendee_id" type="long">
      <generator class="identity"/>
    </id>

    <property name="OnRealEvent" column="on_real_event" type="bool" />
    <property name="RegistrationDate" column="registration_date" type="DateTime" />

    <many-to-one name="Event" column="event_id" class="EnetaMvc.Core.Domain.Events.Event,EnetaMvc.Core" />
    <many-to-one name="User" column="user_id" class="EnetaMvc.Core.Domain.Common.User,EnetaMvc.Core" />
  </class>  
</hibernate-mapping>